import 'package:distribution_mall_flutter/constant/cf_constant.dart';
import 'package:distribution_mall_flutter/generated/l10n.dart';
import 'package:flutter/material.dart';
import 'package:getwidget/getwidget.dart';

class EPAgreement extends StatelessWidget {
  const EPAgreement({super.key});

  @override
  Widget build(BuildContext context) {
    return Row(
      children: [
        GFRadio(
          onChanged: (index) {},
          value: 1,
          groupValue: 1,
          type: GFRadioType.custom,
          radioColor: ColorConstant.primaryColor,
          activeIcon: const Icon(
            Icons.check_circle_sharp,
            color: Color.fromRGBO(250, 100, 0, 1),
            size: 18,
          ),
          size: 20,
          inactiveBorderColor: const Color.fromRGBO(0, 0, 0, 0.15),
          activeBorderColor: Colors.transparent,
        ),
        const SizedBox(
          width: 8,
        ),
        RichText(
          text: TextSpan(
              text: S.of(context).agree,
              style: const TextStyle(
                  color: ColorConstant.black51, fontSize: FontConstant.f12),
              children: [
                TextSpan(
                    text: S.of(context).user_agree,
                    style: const TextStyle(
                        color: Color.fromRGBO(0, 117, 255, 1),
                        fontSize: FontConstant.f12))
              ]),
        )
      ],
    );
  }
}
